package cn.globalph.housekeeper.ui.profile

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.findNavController
import cn.globalph.housekeeper.databinding.FragmentProfileBinding
import cn.globalph.housekeeper.ui.BaseFragment
import kotlinx.android.synthetic.main.tool_bar.*

class ProfileFragment :BaseFragment(){
    private lateinit var binding:FragmentProfileBinding
    override var isTopPicture = true

    override fun onCreateView(
        inflater: LayoutInflater,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        binding = FragmentProfileBinding.inflate(inflater,container,false)
        return binding.root
    }

    override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)
        binding.lifecycleOwner = this.viewLifecycleOwner

        bar_back.setOnClickListener { findNavController().popBackStack() }
    }
}